angular.module('imsApp').filter("toArray", function () {
    return function (data, separator) {
        var array = [];
        if(data) {
            if(!separator) {
                separator = ",";//默认分割器
            }
            var arr = data.split(separator);
            for(var i=0;i<arr.length;i++){
                array.push(arr[i]);
            }
        }
        return array;
    };
});

